function LinkButton(label){
   Controller.apply(this,['<li><a href="#">'+label+'</a></li>']);  
}
LinkButton.prototype = Object.create(Controller.prototype);
LinkButton.prototype.constructor = LinkButton;

LinkButton.prototype.setEnable=function(on){
	if(on){
		this.htmlX.find("a").prop("disabled",!on).removeClass("Disabled").css({opacity:1});
	}else{
		this.htmlX.find("a").prop("disabled",!on).addClass("Disabled").css({opacity:0.6});
	}
};
LinkButton.prototype.setLabel=function(nlabel){
    this.htmlX.find('a').text(nlabel);
};
LinkButton.prototype.setIcon=function(psrc){
	this.htmlX.find('span.iconeinput').remove();
	this.htmlX.find('a').prepend('<span class="imgI iconeinput glyphicon glyphicon-'+psrc+'"></span>');
};

function Button(label){
   Controller.apply(this,['<a class="btn btn-default Button" href="#"><span>'+label+'</span></a>']);
}
Button.prototype = Object.create(Controller.prototype);
Button.prototype.constructor = Button;

Button.prototype.setLabel=function(nlabel){
    this.htmlX.find("span").text(nlabel);
};
Button.prototype.setIcon=function(psrc){
	this.htmlX.addClass('imgI glyphicon iconeinput glyphicon-'+psrc);
};
